219
a:4:{s:8:"template";a:2:{s:56:"E:/xampp/htdocs/rbac/Admin/Tpl/Authority/accessList.html";b:1;s:29:"../Common/head_authority.html";b:1;}s:9:"timestamp";i:1522115440;s:7:"expires";i:1522115443;s:13:"cache_serials";a:0:{}}<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>权限</title>
    <link href="http://localhost/rbac/Admin/Tpl/Public/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
    <link href="http://localhost/rbac/Admin/Tpl/Public/css/admin-authority.css" type="text/css" rel="stylesheet"/>
    <script src="http://localhost/rbac/Admin/Tpl/Public/js/jquery-3.2.1.min.js"></script>
    <script src="http://localhost/rbac/Admin/Tpl/Public/js/bootstrap.min.js"></script>
</head><body>
<div class="container-fluid">
    <div class="row" style="margin: 20px 0px;">
        <b>权限列表</b>
        <a href="http://localhost/rbac/admin.php?c=Authority&m=addAccess" style="float: right;">添加权限</a>
    </div>
    <table class="table table-hover">
        <thead>
        <tr>
            <th>权限</th>
            <th>图标</th>
            <th>Urls</th>
            <th>操作</th>
        </tr>
        </thead>

                <tr>
            <td class="col-sm-2 col-md-2 col-lg-2">编辑文章</td>
            <td class="col-sm-2 col-md-2 col-lg-2">
                
            </td>
            <td class="col-sm-4 col-md-5 col-lg-5" title="?c=Article&m=edit" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap">
                                http://localhost/rbac/admin.php?c=Article&m=edit
                            </td>
            <td class="col-sm-3 col-md-3 col-lg-3">
                <a href="http://localhost/rbac/admin.php?c=Authority&m=editAccess&id=30" class="btn btn-success btn-xs">编辑</a>
                <button type="button" onclick="access_del('30')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
                <tr>
            <td class="col-sm-2 col-md-2 col-lg-2">编辑栏目</td>
            <td class="col-sm-2 col-md-2 col-lg-2">
                
            </td>
            <td class="col-sm-4 col-md-5 col-lg-5" title="?c=Category&m=update" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap">
                                http://localhost/rbac/admin.php?c=Category&m=update
                            </td>
            <td class="col-sm-3 col-md-3 col-lg-3">
                <a href="http://localhost/rbac/admin.php?c=Authority&m=editAccess&id=31" class="btn btn-success btn-xs">编辑</a>
                <button type="button" onclick="access_del('31')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
                <tr>
            <td class="col-sm-2 col-md-2 col-lg-2">删除权限</td>
            <td class="col-sm-2 col-md-2 col-lg-2">
                
            </td>
            <td class="col-sm-4 col-md-5 col-lg-5" title="?c=Authority&m=accessDel" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap">
                                http://localhost/rbac/admin.php?c=Authority&m=accessDel
                            </td>
            <td class="col-sm-3 col-md-3 col-lg-3">
                <a href="http://localhost/rbac/admin.php?c=Authority&m=editAccess&id=33" class="btn btn-success btn-xs">编辑</a>
                <button type="button" onclick="access_del('33')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
            </table>
    <div class="col-sm-12 col-md-12 col-lg-12 pagination">
        <a href="#" class="pagination-info">共条<b>23</b>记录，本页显示<b>21-23</b></a>&nbsp;
        <a href="#" class="pagination-info">3/3</a>&nbsp;
        <a href="http://localhost/rbac/admin.php" class="pagination-link">首页</a>
        <a href="http://localhost/rbac/admin.php?c=Authority&m=accessList&page=2" class="pagination-link">上一页</a>
        <a href="http://localhost/rbac/admin.php?c=Authority&m=accessList&page=4" class="pagination-link">下一页</a>
        <a href="http://localhost/rbac/admin.php?c=Authority&m=accessList&page=3" class="pagination-link">尾页</a>&nbsp;&nbsp;
        <input type="text" class="jumpPage" id="jumpPage"/>
        <a href="#" class="pagination-link" id="pagination-jump">跳转</a>
    </div>
</div>

<script type="text/javascript">
    $('#pagination-jump').click(function(){
        var page = $('#jumpPage').val();
        location.href = './index.php?c=Authority&m=accessList&page='+page;
    })
    function access_del(id){
        if(confirm("确定删除该权限吗？")){
            location.href = "./admin.php?c=Authority&m=accessDel&id="+id;
        }
    }
</script>

</body>
</html>